/**
 * Created by lly on 2019/10/27.
 * 用户相关api
 */
import * as API from './'

export default {
  //登录
  login: params => {
    return API.POST('/admin/doLogin', params)
  },
  //登出
  logout: params => {
    return API.GET('/admin/loginOut', params)
  },
  //修改个人信息
  changeProfile: params => {
    return API.PATCH('/api/v1/users/profile', params)
  },

  // //查询获取user列表(通过page分页)
  // findList: params => {
  //   return API.GET('/api/v1/users', params)
  // },
}
